export function enhancedUserInfo(OriginComponent: React.ComponentType) {
  return (props: {}) => {
    // 1 从缓存获取token
    const token = localStorage.getItem("token")
    // 2 判断token是否过期
    if (token) {
      return <OriginComponent />
    } else {
      return <h2>请先登录，跳转页面</h2>
    }
    // 3 判断是否登录
  }
}
